package es.ats.codington.festival.domain;

/**
 * The Class Visitor.
 *
 * @author 5Cs
 */
public class Visitor extends People{
	
	/* Properties */
	/** The visitor id. */
	private int visitorId;
	
	/** The username. */
	private String username;
	
	/** The password. */
	private String password;
	
	/** The admin. */
	private boolean admin;
	
	/* Default Constructor */
	/**
	 * Instantiates a new visitor.
	 */
	public Visitor() {
		super();
		this.visitorId=0;
		this.password=null;
		this.username=null;
		this.admin=false;
	}
	
    /* Constructor */
	/**
     * Instantiates a new visitor.
     *
     * @param visitorId the visitor id
     * @param name the name
     * @param lastName the last name
     * @param age the age
     * @param address the address
     * @param username the username
     * @param password the password
     * @param phoneNumber the phone number
     * @param admin the admin
     */
    public Visitor(int visitorId, String name, String lastName, 
			int age, String address, String username, 
			String password, String phoneNumber, boolean admin) {
		super(name, lastName, age, address, phoneNumber);
		this.visitorId=visitorId;
		this.password=password;
		this.username=username;
		this.admin=admin;
	}

	
	/* Getters */
	/**
	 * Gets the visitor id.
	 *
	 * @return the visitorId
	 */
	public int getVisitorId() {
		return visitorId;
	}
	
	/**
	 * Gets the username.
	 *
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	
	/**
	 * Gets the password.
	 *
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * Checks if is admin.
	 *
	 * @return the admin
	 */
	public boolean isAdmin() {
		return admin;
	}
	
	/* Setters */
	/**
	 * Sets the visitor id.
	 *
	 * @param visitorId the visitorId to set
	 */
	public void setVisitorId(int visitorId) {
		this.visitorId = visitorId;
	}

	/**
	 * Sets the username.
	 *
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * Sets the password.
	 *
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * Sets the admin.
	 *
	 * @param admin the admin to set
	 */
	public void setAdmin(boolean admin) {
		this.admin = admin;
	}
}
